package com.homedo.distributed.id.client.gen.buffer;

import com.homedo.distributed.id.client.gen.constants.GenTypeConstants;

public class IdRegularityBuffer extends GenBuffer {
    private String bizTag;

    public IdRegularityBuffer(String bizTag, int cacheSize) {
        this.bizTag = bizTag;
        if (cacheSize > 0) {
            super.setCacheSize(cacheSize);
        }
    }

    @Override
    protected String getBizTag() {
        return bizTag;
    }

    @Override
    protected int getGenType() {
        return GenTypeConstants.ID_REGULARITY;
    }

}
